package com.zh.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ProtectedRole {

    ADMIN(1, "admin", "管理员"),
    USER(1001, "user", "基本用户");
    @EnumValue
    private final Integer roleCode;
    @JsonValue
    private final String roleName;
    private final String roleDesc;

    ProtectedRole(Integer roleCode, String roleName, String roleDesc) {
        this.roleCode = roleCode;
        this.roleName = roleName;
        this.roleDesc = roleDesc;
    }

}
